package com.tuocent.dagv2.service;

import com.tuocent.dagv2.common.AjaxResult;
import com.tuocent.dagv2.entity.FieldConfig;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.ui.Model;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 字段配置 服务类
 * </p>
 *
 * @author Vincent
 * @since 2025-07-22
 */
public interface IFieldConfigService extends IService<FieldConfig> {

    AjaxResult getFieldConfigList(Map<String, String> value);

    AjaxResult getShowFieldList(String fillingModel, String classifyId);

    AjaxResult getFieldConfigData(String classifyId);

    String setFieldConfig(Model model, String id, String classifyId, String fillingModel);

    AjaxResult selectField(String classifyId, String fillingModel, String id, String value);

    AjaxResult saveFileConfig(FieldConfig data);

    AjaxResult delFieldConfig(String classifyId, String id);

    AjaxResult moveMetadataPosition(String id, String classifyId, String fillingModel, String action);

    List<FieldConfig> getFieldConfig(String classifyId, String codeModel);

    AjaxResult getParentField(String classifyId, String fillingModel);

    String getOnlyField(String classifyId, String fillingModel);
}
